routing table into a class