Updated Stack implementation with a constructor