Problem9 solved and updated