Program requires at most 7 units of heap storage