Update hw 4 - Use getPet() method