Adds solution to 'lines'