almost done with prob6