completed exercise #3