Add method clear,getLastSequence, and modify sample page