commit square class