Updated generic-element stack, added a test code source