Thanks Praveen, it helped
alot, but still a part of the output is giving gibberish.
this is what I get
I am a Dog
I am a Dog
I am a Dog
Cat@1f6a7b9
Cat@7d772e
I am a Dog
I am a Bird
I am a Dog
there should be two dogs, two cats, 1 bird and then a dog. Any Suggestions on where Im goofing up?