Write funcions to copy/paste regions and line