Added base class for Swift code generation