Example Program: Added demonstration of switch