<image> is composed of many small cubes stacked to form a geometric body. The frontal and left views of the shapes formed are shown as in the figure. To create such a geometric body, the maximum number of small cubes needed is ______.