A simple neural network implementation