example of training and validating a sinngle layer perceptron included