enhancing my_logger.rb by including buffering