first draft of rendering complex types to html