Complete exercises from looping with tests.