Completed the Assignment

Completed assignment to be peer reviewed.  Included commented out REPL
result demonstrating that the function works.