Issue #3 - replaced print statements with actual logging