finished homework for weeks 3 and 4