completed Pet model class