Made Direction class work