 
 		for i in [0..3]
 			point = new Bu.Point @randomX(), @randomY()
-			point.label = "P" + i
+			point.label = 'P' + i
 			points.push point
 
 		return new Bu.Polygon points
 
 	generateLine: ->
 		line = new Bu.Line @randomX(),@randomY(),@randomX(),@randomY()
-		line.points[0].label = "A"
-		line.points[1].label = "B"
+		line.points[0].label = 'A'
+		line.points[1].label = 'B'
 		return line
 
 	generatePolyline: ->
 		polyline = new Bu.Polyline
 		for i in [0..3]
-			polyline.addPoint new Bu.Point @randomX(), @randomY()
+			point = new Bu.Point @randomX(), @randomY()
+			point.label = 'P' + i
+			polyline.addPoint point
 		return polyline

		aTo = aFrom + Bu.rand Math.PI / 2, Math.PI * 2

		fan = new Bu.Fan @randomX(), @randomY(), @randomRadius(), aFrom, aTo
		fan.string.points[0].label = "A"
		fan.string.points[1].label = "B"
		return fan

	generatePolygon: ->

		aTo = aFrom + Bu.rand Math.PI / 2, Math.PI * 2

		bow = new Bu.Bow @randomX(), @randomY(), @randomRadius(), aFrom, aTo
		bow.string.points[0].label = 'A'
		bow.string.points[1].label = 'B'
		return bow

	generateTriangle: ->
