restarted with class/object approach. main file in app3.rb