Added code and rspec test for Robot