extended example usage of ResourceIndex