CS 182 Assignment 5: MDP