Ruby code for Math Mnemonics