Program that calculates words.