why here we must declare two functions. one serve as getting values and the other one serve as setting values. why i cannot use for this both getting values and setting together inside one functions. such as below.