Edited my code to output the even numbers only