made ex17_part2 less verbose
trying to make ex17_part3 as short as possible