Creating an interface to use the API