added world.rb and associated tests