Added Task #6 solution