initial code for extracting sentences