Whilst It's not necessarily obvious how to augment a direct member entry like foo.num = num, You can easily increase your regular setter with an additional power parameter: it can get the job done as expected and we didn't have to change a single line of code in our library! https://luxuryprojectsgurugram.in/luxury-projects-gurugram-the-future-of-upscale-living-in-indias-fastest-growing-city/