add window and event class
Merge pull request #3 from SBeator/master

add window and event class