Here is an example of the modularization of the script: