How to read & write local variable and global variable with default value from & to property and header?