Encapsulating public fields