An angular service for creating classes