implements the line command