playing with hailstone and isEven functions in upenn course