Objects in an array

When a switch button is HIGH it turns a servo to the zero position, when LOW it turns the servo to set position in this case 10.
I can put most of the code in a for next loop with an array but am not sure how to do the button and servo objects.

https://forum.arduino.cc/t/varspeedservo-a-modified-servo-library-with-speed-control/61404

This is the link I used to obtain VARSPEEDSERVO

Thank you for your help.