My own pebble demo code