added Stack class