added stack data structure with push, pop, seek operations to it