Very basic application, my very first try on Lego NXT 1.0

Robot looks for the red ball around and grab it. If ball is not red, it will just push away and keep looking until it finds the red ball.