switch example from lecture