Creation of function log_of_b