problem5 solved