Make perceptron work