Problem #12 solved