new square class