Create Working of Switch