update class constructor
added session