commiting with stack using link list