Lifo And Fifo Method