Prog assignment 2

Completed file for prog assignment 2 (R programming via Coursera.org)