func choose(x: Int) -> Int { if x > 0 { return 1 } return 0 } struct Box { func open() -> Int { return 1 } }