add direction to code sample