convert Router to an instantiable class