Creating session object