Creating all the methods in the API