Added all required methods to Dog.java. All tests passed.