per part3 of homework