Added basic code to read words from a collection