complete code sample
