Implemented Robot class