finished Ch3_Ex6