Where to add the specified code?

You have shown some code previously. Where to add that code?