Added IsEven() and IsOdd() methods.