problem 5 (not done yet)