Added solutions of the seventh exercise