Implement line.

Implement parts of test driver.