Creates new method in class Dog