doc
Factor out Runtime class