Base code for the pets app