Added stack implementation

Output code now compiles and works!