last part of homework 1