Miles and the big black hat