Add dynamic dispatch code example