creating agent.rb