completed cf 248 div2 C