added the direction example.