Model Predictive Control for Cheetah 3