Programmig Assingment 2 for Coursera R Programming