Your task is to create a simple Bank Loan system using core Java concepts. This problem will help you understand how to use **interfaces**, **inheritance**, and **packages** to structure a well-organized application.
com.nbkrist.loans.model for your class definitions and com.nbkrist.loans.main for your main application logic.com.nbkrist.loans.model package, create an interface named LoanCalculations with a single method: double calculateMonthlyInterest().Loan that **implements** the LoanCalculations interface.Loan class should have fields for loanAmount, interestRate, and loanTerm.calculateMonthlyInterest() method in this class must be **abstract**.HomeLoan and CarLoan, that both **extend** the `Loan` abstract class.Your main method must demonstrate the program works by testing the following scenarios:
HomeLoan object (e.g., loan amount 500000, rate 0.05, term 360). Print its calculated monthly interest.CarLoan object (e.g., loan amount 30000, rate 0.08, term 60). Print its calculated monthly interest.List of type Loan. Add both the `HomeLoan` and `CarLoan` objects to it.