1

2

3

4

5

6

7

8

9

function NewBlock(v, x1, x2, y)

//creates the v-th block with coordinates x1, x2, y, y

oid[v] ← -1 //not associated with an object yet

b[v].x1← x1

b[v].x2← x2

b[v].y1← y

b[v].y2← y

b[v].nc← 0

end function