added hachCode() method to Mark class