Working but have some trouble with var item into func push() and pop()