code exercise about Vector