Creating the classes for the new api endpoints