Flexion of the knees and extension of the hips are functions of which muscles? A. Gluteus maximus B. Hamstring C. Quadriceps D. Gastrocnemius