Completed exercise #31