HW2: Until problem 1