P7 Flag Up Codes Leave a reply Mr McDonald, Maths Teacher from Tynecastle High School delivered a maths lesson to Primary 7. The focus of this lesson was cracking different types of code. The class started with semaphore before learning about Caesar ciphers and pigpen ciphers.