change the Pet.java