Updated the fourth part of the animation exercise