Create functions.rb

Created functions.rb file