Fixed the Dog class.