Completes ex 6
completes ex8