commit changes - programming assignment 2 in R