Changed setValue to setPublicValue for public fields and added
setPrivateValue private fields.