Completed exercise b.