Working perceptron