A simple artificial neural network written for learning purposes