Assignment 2 of JH coursera R Programming - Final