Fixing errors in print statements