Added hashcode to remove bugs