Simple ways to implement data structures which are basic to the principles of object oriented programming