Completed functions for the assignment, and added a simple unit test.