Created an array of words and wrote function to return items from this array