Could anyone possibly post a example of using a switch?