Text this: Parametric modeling of credit and investment activities of a commercial bank and its applications