functions.rb template