methods isEven and isOdd written and tested