Create new.rb

My code in a new file.