LoopCalculator exercise