Modularing the app and cleaning up the app.rb file by moving private
methods into separate modules and the Word class into its own file