finished v4 of homework