Rectangular loops and rectangular quasigroups