Added a type switch class (interesting) for experimentation in the future.