fixed dependency injection. started implemeting purchase and statistics controllers