Completed exercise #39