Replace fg/bg properties with getter/setter methods