passing objects to maps & sets

/*So we can conclude that set and map can not distinguish between the
* values of the object. To make this work we have to give person class
* hashcode for equal codes. refer1 to person class*/