add struct lab_line

First try, incorrect result.
more experimentation on device <-> line