Finished problem8