add fucntion to get properties of NSObject