This is the programming assignment 2 of R language on Coursera