Using linked list structure to develop a stack example