intellij can auto create equals() and hashcode() for you