problem 4 and problem 5