finish hw 17 and 18