strategy pattern code example. There are any references about strategy pattern code example in here. you can look below.