adding new square function