Homework for the Coursera class on R