Solution for Dominator