Sample Client Code for Entity Sample