Smart attorney