start implenting the library API in the example