diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx
index 14225dc..3af1379 100644
--- a/source/ch4_conditionals.ptx
+++ b/source/ch4_conditionals.ptx
@@ -193,7 +193,7 @@ Java also supports a switch statement that acts something like the eli
# Convert grade to a scale of 0-10 using integer division
tempgrade = grade // 10
def grading(tempgrade):
- match grade:
+ match tempgrade:
case 10 | 9:
return 'A'
case 8: