Pie Lab teaching notes

For elementary computer science teachers, co-op leaders and parents. The weave rule and two oven rules in one period, what students get wrong and where the app answers it, the judge's ribbons, and the sheet and the setup.

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: One period: weave the top, flip a crossing and find the rule, then bake a cherry pie with two oven rules and see which ribbon it wins. A second period for the sheet, the puzzles and a blueberry pie that needs more than one change.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Pie Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/pielab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/pielab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Pie Lab demo from mytekDev"></iframe>

About these notes

Pie Lab is a pie in 3D with two jobs for a program. The lattice top is woven by a rule: number the strips from 1, add the two numbers at a crossing, and an even sum means the strip going front to back is on top. The oven is run by rules the student writes as sentences: when something happens, do something, right away or after a wait.

It is written for grades 3 to 5 and the CSTA standards for algorithms and programming at that level: creating programs with sequences, events and conditionals (1B-AP-10), comparing algorithms for the same task (1B-AP-08), and testing and debugging (1B-AP-15). Rules are sentences of choice words, never typed code, which keeps it inside the grade 3 boundary of the 2026 standards.

One period

  1. Look at the weave (5 minutes) Everyone opens the cherry pie. Ask what the strips do. Over, under, over. Click one crossing: the strip goes under, and the readout says some strip now goes over two in a row. Put them all back.
  2. Find the rule (10 minutes) Open the Top tab and look at the grid. Strip 2 crosses strip 3: 2 + 3 = 5. Is that strip on top? Try three more crossings. Then choose My rule, read the sentence aloud, and change even to odd. Every crossing flips.
  3. Bake by hand (5 minutes) Press Bake and take it out when it looks done. Most students get a red or white ribbon, or a burnt edge. Read what the judge said.
  4. Write two rules (15 minutes) Oven tab, Add a rule: "When the edge is golden, right away put foil on the edge." Add another: "When the filling bubbles, wait 5 minutes, after that take it out." Bake and do not touch anything. Read the timeline: where did each rule happen?
  5. Chase the blue (5 minutes) The judge says what kept the pie from the blue ribbon. Change one thing (the low rack helps a pale bottom) and bake again.
  6. Exit question (5 minutes) Your foil rule happened at 21 minutes. The edge stayed golden. Did the rule happen again? Why not?

What students get wrong, and where the app answers it

What students sayWhere the app answers it
A rule keeps happening as long as it is true.The timeline marks the moment a rule's when came true, once. A foil rule on a golden edge does not put foil on again and again. The puzzle Does it happen again? asks exactly this.
"Then" means right away.Pie Lab writes "wait 5 minutes, after that" for a sequence, never "then", because young students read then as afterwards. Right away and wait 5 minutes are two different choices, and the puzzle Right away, or wait? shows why it matters.
Zero is not even.Strips are numbered from 1, so the first crossing is 1 + 1 = 2. A student never has to decide whether 0 is even to read the weave.
Any rule that mixes the numbers makes a weave.Choosing "i is even" in grades 6 to 8 lays one strip over everything. The readout says the weave is broken, and the puzzle Which rule weaves? explains that a weave needs both numbers.
If my rule did nothing, the app is broken.The card names every rule that never happened, and the guide says why: a fruit filling bubbles, it does not set; a pie with no top has no top to brown.
Taking it out at the right time is luck.By hand the blue window is about a minute; a rule gets it every time. The difference is the lesson: a program can watch and act at the exact moment.

The judge and the ribbons

Every pie that comes out is judged. A white ribbon is done in the middle with nothing ruined. A red ribbon adds a golden edge and a golden top. The blue ribbon also needs the pie out at just the right time, a bottom that is not pale (custard pies are not judged on the bottom), an edge and a top that match, and a weave with no strips out of place.

A burnt pie, one that bubbled over, one with a crack, or one raw in the middle gets no ribbon and an honest line about the pie: "The edge is charcoal." The judge never talks about the student. When a student shares a pie with no ribbon, Pie Lab asks for a better one first, so the gallery fills with good pies rather than funny bad ones.

What the app simplifies, on purpose

Grades 3 to 5 and grades 6 to 8

Grades 3 to 5Grades 6 to 8
The weave rulei + j or every 2nd, even or odd, in wordsAdds i, i times j, i minus j, and a multiple of 3; the weave line is shown as math
The oven"This oven is pretend.""The oven is this app's own model of heat."
The sheetSeven questionsNine, with right away vs wait and the glass dish

The sheet, the puzzles and the setup

The sheet quotes the student's own pie: its strips and dough, the minute its first rule came true, and its ribbon. It cannot be handed in until the pie is baked and every question is answered, and it prints with a picture of the pie.

Eight puzzles. Four are choices built on the misconceptions above, where every wrong answer says why. Four are bakes the student's own pie has to meet: a blue ribbon cherry, a blueberry blue, a pumpkin with no crack, and a slice that holds its shape. They tick themselves when the pie does it.

Setup, in the app's header, chooses the grade level and the sheet's questions, takes up to ten of your own, and prints an answer key with the rules that win the blue for each pie. Save the project and hand it out as the starter.

Standards

More help

Is something on this page wrong or not clear? Write to us.

Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.