added window creation boilerplate
sample working