Wrap main.rb in application class