Fixed bug and now window example runs!