Addressed all of scott's comments except the one about the bellman equation