fix implementation of `even?` and `odd?`