The student wanted to set the birds free.
When the rich people tried to get inside, the gates of the garden slammed shut.
The student noticed the birds when a caravan passed by.
The shepherd was successful until disaster struck and he lost his sheep.
The student was upset because he thought he had failed his task.