functional queue and adding word to story