Created 'each()' method.