project 6 - handle directories