Amy couldn't cook.
The teacher showed the class Amy's dish as an example of how to cook.
Amy took a class to learn to cook but she stayed terrible at cooking.
Amy took a class to learn to cook and she became very good at cooking.