IKDD homework 4