overwrite hashcode and equal funcitons of feature object