Add the co.extend function.