Built a function for Odd or Even - Also added comments for clarity