Coursera Assignment R Programming Week 2