Given the provided lines of Python code that are mixed up, your task is to reorder them to solve the following problem. You have a set of elements ['a', 'b', 'c'] that need to be put into a structure where the last element in is the first one out.
After all elements are added:
Show the contents of this structure.
Remove one element and print it.
Show the contents of the stack after all elements are popped.