Define MDP class