The robot code