class inheritance in data structures
encoding: first ideas