square class