solved Problem D.