An implementation of a Perceptron learner