switch block examples