my data structure encapsulation