Equals and hashcode methods were overrided in class Mark