Add class and service provider