added TDWindow class