Perceptron seems to work now