Cursors: implemented stack system