Added the setLine method

This resolves issue #6, which I created.