attempt ch 4 until Exception error
ch 4 code