added code for homework on R programming peer review project.