Understanding state machine example

Thanks, Brad. It does save memory:

const int - 2,838 bytes
long - 2,918 bytes