compled hw 17 on fri 11/14