Setting up dependencies and configuration classes