Adding a basic API example (uses a few 1.2 method changes)