Modular library for simulating classical inheritance