Switch case statement implementation