Complete required method for Person2.java