The changes are made for R programming assignment 2