Edited to answer exercises in 6