this repository contains the solution for assignment2 of r programming course of coursera