Decision theory and artificial intelligence II: The hungry monkey