perceptron classifier class