Stack and Its Applications