Added hashcode and equals to interactive object