Exercise 5 getting correct output, technically not modular (according to verification, pffft)