Perceptron work