Added struct to define a stack element, and an init function that will be used to start the stack from main