calculations in grammar.