filled in code for functions in routing_table