third version: division of word types