Hamlet stuff with rendering functions all grouped together for easy use