Working on stack data structure