got the perceptron working