An implementation of a artificial neural network