a square / wave experiment