Check out the robot class, that should do the trick