Added server constructor class and reset method