Making decisions with switch