problem 2d
problem 2e