filling perceptron class at home