Add complete exercises with tests for methods using loops. Remove extra print statements.