Revised Direction class so code would be cleaner