Implemented Switch statement.