Fill out most of the client.
Add a unit test for the line stuff, which can be tricky.