Initial content added to empty stubs.

Programming Assignment 2 - Programming in R.
Added initial content to the empty function stubs provided.