renamed exercise.rb to base.rb
undid accidental delete of program
extracted file i/o  to logger#write_to_file