problem12 solved and refactored