Create the code for the robot