finished the basic usage of direction