Using constants rather than fields