add semantic class to the loan template