example completed and working, minor changes to settings class