lines solution