My code from MSP430 Microcontroller Basics book