Refactored the tasks to improve readability, added comments for better understanding, and updated variables with new values.