Very simple perceptron model, school stuff