fill in skeleton code for text handling
merge