Implemented session class.