Use extend function