hw from weeks 3 and 4