Finished chapetr 6 exercises