Reviewed get_contract method