finished main.rb