first part of homework 5