Added a general direction class.