Curious to see other solutions. Here’s mine…

```
extension Int {
var remainder: Int { return self % 2}
}
extension Int {
enum EvenOdd {
case even, odd
}
var evenodd: EvenOdd {
switch remainder {
case 0:
return .even
default:
return .odd
}
}
}
var someNumber: Int
someNumber = 2
someNumber.remainder //0
someNumber.evenodd //even
someNumber = 27
someNumber.remainder //1
someNumber.evenodd //odd
```