add demo code for reg.fwd in leaps packages