answer to week5-assignment-4.