Problem 30 taking out debug prints