some changes in the MyPet constructor