import Foundation

class Greeter {
    var name: String
    
    init(name: String) {
        self.name = name
    }
    
    func greet() {
        print("Hello, \(name)!")
    }
}

let greeter = Greeter(name: "Alice")
greeter.greet()
