lab03 : added debug guards around print statements