Fleshed out the two function stubs, added commentary and verified working
as to expected values.