Added comments. Completed problem 4.