simple implementation of application programming interface