Added an example of parsing urls and using switch to respond differently to each