simple switch example