Programming assignment for Coursera R Programming