coursera r_programming assignment2