my long form interpretation of the Ruby each method using looping and object tracking