arraylist dog method signature