Added all required methods to Dog.java