Perceptron class reorganization, new method practiceAndTest