remove save_file method and add to the main.rb file