Doing final exercises from MoreCoq.v