created test and training sets