Setting up dependencies and the configuration class