Refactor instance var getting in Stacks
Refactor instance var getting in Queues