Basic implementation with a test case.