Programming assignment for Coursera R Programming course