Persistent data structures reallizaion for classes.