Training
revamped library using armadillo