example 9-1: try/catch