Changes for R programming assignment 2.