modified end points to one class

modified end points to one class