First commit. Adds MDP class.