change a method name in perceptron.rb