Complete problem{1,2}, start problem3
Essentially complete cs260/hw2/problem3