You have to use Rstudio to solve the second question only (start with “Recall th