alloauto function

data from Section 1.9