implemented split() for data corpus