Programming Assignment 1 for Coursera R Programming course