Wrote basics of session class