Add some code and tests.
Add Travis config