First assignment of R Programming course from coursera