Uncomment program

Program is uncommented so that it runs.
Add switch statement in place of if statement.