finish the first questions of homework 3