completed assignment 2

Filled out the 2 stub functions to complete assignment 2 for Coursera R
Programming course