Learning how following directions