Accessing the property values in objects