add functions to dog.java
add functions to dogTest.java