Writing switch statement with cases and a default.