HWs chapter 3: Loops