dr. grey and dr. shepard both worked for seattle grace hospital. one day, isabella injured was being treated by the doctors and suffered additional injuries. she later sued seattle grace hospital for medical malpractice. the ally mcbeal law firm represented seattle grace hospital in this medical malpractice suit against the hospital. seattle grace hospital was self-insured for the first $1,500,000 of liability and the happy payout insurance company provided excess coverage of up to $5,000,000. unfortunately, the hospital went into bankruptcy. at the time the hospital went into bankruptcy, it owed $93,000 to the ally mcbeal law firm for its work on the malpractice suit. the bankruptcy court ordered the law firm to release its files on the case to happy payout insurance company to defend under the excess coverage insurance. the law firm sued happy payout for its legal fees of $93,000 expended before the bankruptcy. identify the type of contract that existed and how will the court decide the outcome?