partial solution for the two first data sets in the project description