Create .Rmd part 2

This part needs to be merged with the main code file