added object argument to class definition in Session