reworked equals() method in Person.java