second assignment of the Coursera R course