for some reason won't compile, 'cannot find symbol' at line 19 pointing to trainingText