refactor step : extracted compass class for directions