working main.rb