Classes hierarchy to parse and operate with mathematical expressions