Update learnfunction.rb