Inserted my solution

Inserted code as per step 3 of instructions at
https://class.coursera.org/rprog-004/human_grading/view/courses/972139/assessments/3/submissions