Write a Robot class