complete script_6 for project_2