made some changes, added class to inherit from pet