Adding a first simple implementation and test cases.