first part of homework 2