Add lines solution