Reaction of 3,3-diphenylpropylmethanesulfonate (I) with homopiperazine hydrochloride (II) and NaI in ethanol provides compound (III), which is finally condensed with 4-(methylsulfonyl)benzyl bromide by means of K2CO3 in acetonitrile or by means of NaI in ethanol.