groovy

implement switch statement