Simple objects' data sharing by static variables' simulation