Implementation of routing class structure and test cases