A sample implementation of a multilayer perceptron neural network.