new programming sequence tutorial for event simulation