Square Registration Sample