Implements a simple neural network with no hidden layer