the basic way to use switch