Finished the fourth problem.