Adding core_ext to support def_each method