Problem 4 and problem 5