Add the classes for perceptron trainer