 
     if collections.length < 1 or
        not (collections[collections.length-1] instanceof CodeListCollection)
-      collection = new CodeListCollection(shape)
+      collection = new CodeListCollection('diamond')
       collections.push(collection)
     else
       collection = collections[collections.length-1]

      ctx.lineTo(0,+radius*Math.SQRT2)
      ctx.lineTo(+radius*Math.SQRT2,0)
      ctx.lineTo(0,-radius*Math.SQRT2)
      ctx.closePath()

  return

collections = []
shapes = ['circle','square','hex']
next_shape = 0

# keyboard input
pendingString = ''
