Using an enum for the direction.