re hazylife's observation, you need to understand that...
use feature "switch";" is NOT EQUAL to use Switch;.
Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
- verbatim error and/or warning messages
- a coherent explanation of what "doesn't work actually means.