modify class: public void endSession();