added solution for c d e