this is the file for extracting and creating training data