Perceptron inplementation for college class