Added another constructor for the vector classes.