the kentrosaurus had spikes on its back and tail for defence against predators like ceratosaurus and allosaurus