Added function isEven