Well if I can say this without sounding patronising, if you don't understand that then you should stick to the rules until you understand how this is all supposed to work. Once you get that lot, then you'll have enough knowledge to understand what I did in part 2, but if you try the advanced stuff before you get the easy stuff nailed then you'll develop loads of bad habits. For your stage, the only answer is 1: you can't, and you need an accessor function.