Add first function and tests.