Modelling Intelligent Behaviour: the Markov Decision Process Approach