Update code in Class: Application and Window to make it runnable.
add test02 to test the simple window