MortgageCalculationService.egl ファイルの amortize() 関数の後に以下のコードを追加します。
レコードはパーツであるため、サービス・パーツの外部 (このファイルの最後にある end ステートメントの後) に定義します。
record MortgageCalculationResult
// user input
loanAmount MONEY;
interestRate DECIMAL(10,8);
term INT;
// calculated fields
monthlyPayment MONEY;
interest MONEY;
end