Implementation of the first three steps of the assignment (pending "imputing missing values" and "are there differences...?")