Added switch and type examples
Merge pull request #7 from Zingo89/master

Added switch and type examples