override equals and hashcode
set all attributes to private, and add the standard setter/getter