This assumes that length is set to zero by default initialization. Lets set Length to zero above.