updated the 'square' online example