Refactored to use even? and odd? methods