using enumberable#each_wth_object