change inheritence structure to live in main.rb
Merge pull request #1 from flyingoctopus/working_branch

change inheritence structure to live in main.rb