pyramid_2 solution