added TDwindow class