added simple API example