added table 'loan'
removed unused code
added loan calculation