Code for R Programming course