NNteach function determined