Add an example of an equals method with a better signature