homwework4 --completed