design an AF-Raf program