first version of neuralnet impl