hw4 (sift) completed