add save method to Animal class