Data drives the drawing
An array is a great place to keep a set of positions. Put your x-coordinates in a list, loop over them, and let each one place a shape. Change the list and the whole layout changes — no extra code:
Try it
Add another number to xs and run again — a new dot appears all by itself, because the loop follows the array's length.