add class Dog, and use it