prototype that trains a NN to recognise names