Updated exercise in markdown

Using [markdown](https://help.github.com/articles/markdown-basics) to style your Q & A. Can you reformat in markdown so that Exercise 1's instruction, code and result are under Exercise 1, and likewise for Exercise 2?