sqaure added as the class method for rectangle