Initial version of Perceptron class