added nnet code