Close #8: Put API wrapper code in a module