create the function squeez from question 2-4