Creating the Stack class