Finished the second part of the problem in the morning...