Initial commit, proposed reference implementation.
Add a test