moved main.rb into an example