doc analysis class