add equals and hascode method to Item