use switch to demonstrate returns are mutually exclusive
Merge pull request #1006 from levicook/master

Use switch statement to demonstrate returns are mutually exclusive.