refactor:  remove the log function into bank and add the test for log function