ki: starting with a primitive implementation