contract analysis module