What might sheep and driverless cars have in common? Following the herd