changes to abstract.py  

i was not for sure this is what you wanted but i made the out put so that it only prints out 2 cats/dogs insted of 3