Reduce every value mod m onto a wheel of m slots. Watch a+b and a×b wrap past 0, see negatives count backward, and trace ab mod m by square-and-multiply.
junior.md and
middle.md for the safe patterns and professional.md for why Z/mZ is a ring (and a field when m is prime).