using auto generated equals in types