Adding WindowManager implementation and Main program