better organize tutorial.rb