7- Building an API