Chapter 8: Ex. 6 sameParity