adding new method to Direction