Implement add.  Fixes #1.