Can you implement equals() and hashcode() methods?