second part of homework