Merging and calculating the line. Now need to test with the other datasets.