added a sample scratchpad demo