Adding equals and hashcode to base event