added functions.rb