Dec.8 add stack, stack_record, finished some function