Dynamic class lookup