Most of exercise 6, some proofs still to do