update square class