exports Extend function