Assignment 2 - Passed unit tests on https://class.coursera.org/rprog-008/forum/thread?thread_id=174