moved analyzeExpression() call into constructor