You need to write a function that takes the process id as a first argument and kills the processes with the SIGTERM signal.
Tip: As you remember from the topic, you don't need to specify the SIGTERM signal explicitly as the argument to the kill command.