Square class