Dinosaurs wagged their tails while running