Let's Make Robots!

Object recognizing

I have written my own coding and got the output in serial terminal window in Program editor for the PART III GET A GRIP. my problem is that how i can differentiate a cup from other object and make the robot understand it. kindly help me i searched the website but i was not able to get it. kindly help me with the code for " how i can make my robot understand that its a cup in front".  i am using PICAXE 28 and SRF005