Introducing a training module for ANN