{
	"A" : {
		"newobj" : [ {
				"maxclass" : "button",
				"varname" : "stageA_button",
				"patching_rect" : [ 342.0, 182.5, 41.0, 41.0 ],
				"outlinecolor" : [ 0.232155, 0.715185, 0.279404, 1.0 ]
			}, {
				"maxclass" : "comment",
				"varname" : "stageA_button_comment",
				"text" : "this is a button object, it outputs a bang when you click on it",
				"linecount" : 2,
				"patching_rect" : [ 388.5, 182.5, 263.5, 44.0 ],
				"fontname" : "Lato Light",
				"bubble" : 1,
				"fontsize" : 14.0
			}, {
				"maxclass" : "panel",
				"varname" : "stageA_panel",
				"patching_rect" : [ 342.0, 429.5, 89.0, 21.0 ],
				"rounded" : 20,
				"border" : 2
			}, {
				"maxclass" : "comment",
				"varname" : "stageA_goal",
				"text" : "Our little patch is going to change the color of the panel each time you click on the green button.",
				"linecount" : 2,
				"textjustification" : 1,
				"fontname" : "Lato Light",
				"patching_rect" : [ 309.0, 293.6875, 418.0, 50.0 ],
				"fontsize" : 18.0,
				"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
			}, {
				"maxclass" : "comment",
				"varname" : "stageA_panel_comment",
				"text" : "this is a panel object",
				"fontname" : "Lato Light",
				"patching_rect" : [ 436.5, 426.5, 137.0, 27.0 ],
				"fontsize" : 14.0,
				"bubble" : 1
			}
		]
	},
	"B" : {
		"newobj" : [ {
				"maxclass" : "newobj",
				"varname" : "stageB_r",
				"text" : "random 1001",
				"patching_rect" : [ 342.0, 264.333344, 83.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "number",
				"varname" : "stageB_r_visualize",
				"patching_rect" : [ 409.0, 303.25, 50.0, 22.0 ]
			}, {
				"maxclass" : "newobj",
				"varname" : "stageB_div",
				"text" : "/ 1000.",
				"patching_rect" : [ 342.0, 303.25, 51.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "flonum",
				"varname" : "stageB_div_visualize",
				"patching_rect" : [ 342.0, 343.666656, 50.0, 22.0 ],
				"format" : 6
			}, {
				"maxclass" : "comment",
				"varname" : "stageB_flonum_comment",
				"text" : "the number value is now between 0. and 1.",
				"bubble" : 1,
				"patching_rect" : [ 392.5, 341.666656, 271.0, 26.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}, {
				"maxclass" : "comment",
				"varname" : "stageB_number_comment",
				"text" : "visualize the random value",
				"bubble" : 1,
				"patching_rect" : [ 461.0, 301.25, 175.0, 26.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}, {
				"maxclass" : "comment",
				"varname" : "stageB_random_comment",
				"text" : "random outputs numbers when receiving a bang",
				"bubble" : 1,
				"patching_rect" : [ 427.0, 262.833344, 291.0, 26.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}, {
				"maxclass" : "comment",
				"varname" : "stageB_button_comment_click",
				"text" : "click to produce bangs",
				"bubble" : 1,
				"patching_rect" : [ 385.0, 190.0, 153.0, 26.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}
		],
		"connect" : [
			["stageA_button", 0, "stageB_r", 0],
			[ "stageB_r", 0, "stageB_div", 0],
			["stageB_r", 0, "stageB_r_visualize", 0],
			[ "stageB_div", 0, "stageB_div_visualize", 0]
		],
		"retire" : [ "stageA_panel_comment", "stageA_button_comment", "stageA_panel_comment", "stageA_goal"]
	},
	"C" : {
		"newobj" : [ {
				"maxclass" : "newobj",
				"text" : "/ 1000.",
				"varname" :	"stageC_div3",
				"patching_rect" : [ 536.0, 303.25, 51.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "newobj",
				"varname" : "stageC_r3",
				"text" : "random 1001",
				"patching_rect" : [ 536.0, 264.333344, 83.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "newobj",
				"text" : "/ 1000.",
				"varname" :	"stageC_div2",
				"patching_rect" : [ 439.0, 303.25, 51.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "newobj",
				"varname" : "stageC_r2",
				"text" : "random 1001",
				"patching_rect" : [ 439.0, 264.333344, 83.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "newobj",
				"varname" : "stageC_pack",
				"text" : "pack 0. 0. 0. 1.",
				"patching_rect" : [ 342.0, 343.666656, 310.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "message",
				"varname" : "stageC_message",
				"text" : "0.27 0.952 0.992 1.",
				"patching_rect" : [ 342.0, 386.166656, 165.0, 22.0 ]
			}, {
				"maxclass" : "comment",
				"varname" : "stageC_pack_comment",
				"text" : "now we combine 3 random values into one list",
				"linecount" : 2,
				"bubble" : 1,
				"patching_rect" : [ 530.0, 371.666656, 170.0, 57.0 ],
				"fontname" : "Lato Light",
				"bubblepoint" : 0.2,
				"bubbleside" : 0,
				"fontsize" : 13.0
			}
		],
		"connect" : [
			[ "stageA_button", 0, "stageC_r2", 0],
			[ "stageA_button", 0, "stageC_r3", 0],
			[ "stageC_r2", 0, "stageC_div2", 0],
			[ "stageC_r3", 0, "stageC_div3", 0],
			[ "stageB_div", 0, "stageC_pack", 0],
			[ "stageC_div2", 0, "stageC_pack", 1],
			[ "stageC_div3", 0, "stageC_pack", 2],
			[ "stageC_pack", 0, "stageC_message", 1]
		],
		"retire" : [ "stageB_div_visualize", "stageB_r_visualize", "stageB_flonum_comment", "stageB_number_comment", "stageB_random_comment" ]
	},
	"D" : {
		"newobj" : [
			{
				"maxclass" : "newobj",
				"varname" : "stageD_prepend",
				"text" : "prepend bgcolor",
				"patching_rect" : [ 342.0, 378.666656, 97.0, 23.0 ],
				"fontname" : "Lato"
			}, {
				"maxclass" : "comment",
				"varname" : "stageD_panel_comment",
				"text" : "a panel object can change its color with the bgcolor message",
				"linecount" : 2,
				"bubble" : 1,
				"patching_rect" : [ 439.0, 419.0, 247.0, 42.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}, {
				"maxclass" : "comment",
				"varname" : "stageD_prepend_comment",
				"text" : "format the message",
				"bubble" : 1,
				"patching_rect" : [ 443.5, 377.166656, 138.0, 26.0 ],
				"fontname" : "Lato Light",
				"fontsize" : 13.0
			}, {
				"maxclass" : "comment",
				"varname" : "stageD_final_comment",
				"text" : "Now click on the green button a few times. You'll get a new random color each time.",
				"linecount" : 2,
				"fontname" : "Lato Light",
				"numinlets" : 1,
				"patching_rect" : [ 342.0, 468.0, 366.0, 50.0 ],
				"fontsize" : 18.0,
				"numoutlets" : 0,
				"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
			}
		],
		"connect" : [
			[ "stageC_pack", 0, "stageD_prepend", 0],
			[ "stageD_prepend", 0, "stageA_panel", 0]
		],
		"retire" : [ "stageC_message", "stageC_pack_comment"]
	}
}
