Implementing class library emulation