Programming grid Vectors