Finished implementig stack. Might still be some errors