define sessions model