refactoring Tags to Path to class