created isOdd method and test unit