Implement the first 6 steps of the Create Term Definition algorithm, with tests.