The reaction of 4-nitrophenol (I) with 1,5-dibromopentane (II) and NaOH in refluxing water gives the aryl ether (III), which is finally condensed with pyrrolidine (IV) in refluxing ethanol.