Step 12 of 15 · F · Boxes working together
Two more boxes join the scene
score=100
score is set up. We need a buddy box.
Step 1 / 7idle
A real program is rarely one lonely box — it is many boxes living side by side.
Picture two boxes now: one named score holding 100, another named bonus holding 3.
Each box is independent — it has its own name, its own value, its own stamp.
Changing what is inside score does not touch bonus — they share nothing.
They can sit next to each other for the entire program and never get mixed up — the names keep them separate.
When you pick names for related boxes, try to show the relationship — names like firstName and lastName travel as a pair.
Programs feel huge, but underneath they are mostly this: many small boxes, each doing its own quiet job.
Check yourself
Quick check
The box **score** holds 100 and the box **bonus** holds 3. You replace *score* with 250. What is inside *bonus* afterwards?
Quick check
Which pair of names best shows that two boxes belong together?
