Abstract stack of three dimensional rectangular building blocks