done with homework9, Q1