Synthesis of agents acting on the central nervous system and synthesis of potential anti-cancer agents