Solution to the second challenge - level 2