method design example 2.pdf