just created trainer.cpp