Update the sample for better structure

A lot of == were unneeded so I removed them.
Also introduce the md output of the sample