ArrayStack class is completed