class Vehicle { var name: String var wheels: Int var body: String // State private var isStarted = false // Factory Types static var raceCar: Vehicle = { Vehicle(name: "Race Car", wheels: 4, body: "Fiberglass") }() static var junker: Vehicle = { Vehicle(name: "Junker wheels: 4, body: "Rusted Steel }() init(name: String, wheels: Int, body: String) { self.name = name self.wheels = wheels self.body = body } // Functionality var runningDescription: String { isStarted ? "is running" : "is not running" } func turnOver() { isStarted.toggle() print("The vehicle \(runningDescription)") } } let raceCar = Vehicle.raceCar let junker = Vehicle.junker