implemented Settings class as singleton