overriding parent class methods. created dog class.