Exercise 27: Memorizing Logic