added function extend to Util module