Working version of Practice API with unit-tests.