Homework5 --working