Playing with array and stack