solved Problem C.