Problem 3

Uploading old solution to problem 3