Original: It was a herbivore that walked both as a biped and a quadruped.
Simplified: It was a herbivore that walked both as biped and a quadruped.