add example for direction, implemented direction half way