Problem 4

Problem 4, semi-cleaned