got the correct answer for write_md