Refactored semanticNet