builds out the my_each method