Implementing the allocating classes separately and the trying implement
a base class keeping generic getter and setter.