Basic model using graphs instead of MDPs