Updated Semantic Analyzer Class