Introduced session management class
Modified session manager to fit with session management class