Refactor-3: variable name sz should've been named len