Problem5 solved