Added basic code for creating a window