Add switch example in groovy