Solution for problem 11. Fmt'd