added each_cons method