assignment_3_clearfunction