Xinyi: implemented method in Person1.java