Working with switch