A muscle is attached to the femur and tibia. It’s function or action is to bend the knee. When it contracts, it is acting as the