loops problem sets