problem #1 in hw#1