Remade tutorial using R Markdown