The initial code performing the classification of samples (Currently does not work... to be investigated after the weekend )