3rd homework (with animations)