creating session class