correct classes structure
code cleanups
using factory to invoke settings class