Implement OOP support in the semantic analyzer