I would like some help on how can I write the code below inside a function.
This is the second file where I\'m calling the function.
require "inde