Added level 3 solution