Submission version

Added code to replicate results of sample unit tests shown at
https://class.coursera.org/rprog-009/forum/thread?thread_id=164