# Hour of Code: Geometric Spirograph & Polygon Art > Connect math and coding by using the Pen extension and 360 ÷ sides to draw regular polygons and rotating mandalas. Grades 4–8 Scratch Hour of Code lesson plan: Connect math and coding by using the Pen extension and 360 ÷ sides to draw regular polygons and rotating mandalas. ## 60-Minute Pacing Plan (Grades 4–8) Connect math and coding by using the Pen extension and 360 ÷ sides to draw regular polygons and rotating mandalas. - 10 min: Enable Pen extension and draw a square (repeat 4, turn 90) - 20 min: Test triangles (120°), pentagons (72°), hexagons (60°) - 20 min: Wrap inside an outer loop that turns 15° and shifts pen color - 10 min: Compare patterns across the class ## Classroom Tips & Next Steps Encourage students to click the green flag after every 2–3 blocks. If a student gets stuck, ask them what they expected to happen and which block ran right before the surprise. - [All 15 Hour of Code Plans](/en/hour-of-code/): Browse more 1-hour Scratch activities. - [Grade-Level Curriculum Guides (K–12)](/en/grades/): Continue beyond Hour of Code by grade level. - [Interactive Scratch Labs](/en/tools/): Demonstrate coordinates, angles, logic, and lists live on your projector. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)