Adding hashcode and toString() to EventIndex