illustrates exception propagation with methods