Removed code duplication
Remove example from source control
Simplify resource initializer