frnn implemented steps1-3 done