Implement and test the Utils.extend method.