drawing multiple objects with the vector