If you override eq, you also have to override the hash method.