simon's function

simon's function