Homework 3 for IWS