Problem 1 done, 2 and 3 in progress