homework from w03d05 and w04d01