add equals and hashcode methods (perhaps dedup didn't work so well after all last Sunday)