all parts done in the first approach
knit to html and add figure