Updated code. Now with all dogs.