simplified code, accompanying document in Markdown