Finished problem9