#6 logger extracted to a separate class