Changed vector datatype to a struct.
Change vector from array to struct.