Finished the 4th function. Preparing to add the JSON data and wrap up the project with the procedure.