Here's a lesson in ingenuity. This Lego Mindstorms NXT machine sorts out five different colors of gumballs using only two motors and the light sensor.

Access this 3-minute, 8-second video by clicking on the link below.