Update code.rb

Saving file as a new file in the directory from where the analyzed file was taken