Adds an example of how to use the function

This is for the Peer Assignment on the 2nd Week of the R Programming
course.