Created classifier class, modified how centroid works.