add register example