converted pseudocode to .md format