CS554, Homework 4