Semantic distance implemented