Code for Coursera R Programming class