Updated constructor in Vector class.