Updated. Stack with Arrays.