code sample revisited