Vector and for loop for printing