final homework4