Programming Assignment 3 of "R programming" course on Coursera