commit of the programming assignment 2 - R programming