router class sketch