add dog.java