added example, simplified index