Homework4 updated