a simple engine to simulate a neural network