finished code example 1, named as TryInitialization.java, in Chaper5!