Using names and classes as shorthand for object properties