coding style perceptron