First implementation of a basic API