Basic class structure to build and infer topic relationships