doing next logger exercise