add naive routing implementation - end ch 2