add basic class and distMeasure class