added test function to create a stack. Has display issues