dominator pass as class example