Finished problem 2 of the final