added a function to allow for testing whether a number is even