member function written with the structures DO and LOOP