completed perceptron