Added base->extend to allow extending of objects